package com.ys.web.entity;
// Generated 2017-3-7 9:21:28 by Hibernate Tools 4.0.0

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 用户表
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "user", catalog = "ysanalyze")
public class User implements java.io.Serializable {

	private Integer id;
	/**注册时间*/
	private Date registerTime;
	/**修改时间*/
	private Date updateTime;
	/**用户名*/
	private String username;
	/**密码*/
	private String password;
	/**员工名称*/
	private String employeeName;
	/**员工工号*/
	private String employeeNumber;
	/**用户状态*/
	private String userState;
	/**备注*/
	private String remark;

	public User() {
	}

	public User(Date registerTime, Date updateTime, String username, String password, String employeeName,
			String employeeNumber) {
		this.registerTime = registerTime;
		this.updateTime = updateTime;
		this.username = username;
		this.password = password;
		this.employeeName = employeeName;
		this.employeeNumber = employeeNumber;
	}

	public User(Date registerTime, Date updateTime, String username, String password, String employeeName,
			String employeeNumber, String userState, String remark) {
		this.registerTime = registerTime;
		this.updateTime = updateTime;
		this.username = username;
		this.password = password;
		this.employeeName = employeeName;
		this.employeeNumber = employeeNumber;
		this.userState = userState;
		this.remark = remark;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)

	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "register_time", nullable = false, length = 19)
	public Date getRegisterTime() {
		return this.registerTime;
	}

	public void setRegisterTime(Date registerTime) {
		this.registerTime = registerTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "update_time", nullable = false, length = 19)
	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Column(name = "username", unique=true, nullable = false, length = 50)
	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Column(name = "password", nullable = false, length = 50)
	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Column(name = "employee_name", nullable = false, length = 50)
	public String getEmployeeName() {
		return this.employeeName;
	}

	public void setEmployeeName(String employeeName) {
		this.employeeName = employeeName;
	}

	@Column(name = "employee_number", nullable = false, length = 50)
	public String getEmployeeNumber() {
		return this.employeeNumber;
	}

	public void setEmployeeNumber(String employeeNumber) {
		this.employeeNumber = employeeNumber;
	}

	@Column(name = "user_state", length = 50)
	public String getUserState() {
		return this.userState;
	}

	public void setUserState(String userState) {
		this.userState = userState;
	}

	@Column(name = "remark", length = 200)
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

}
